/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.xtecuan.modelo.dto;

import java.io.Serializable;

/**
 *
 * @author ernesto
 */
public class UsuariosDTO implements Serializable{
    
    private static final String SELECT_ALL = "SELECT * FROM usuarios;";
    private static final String LOGIN = "select login from usuarios where login = ? && passwd = ?";
    
    private Integer id;
    private String login; 
    private String passwd;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getLogin() {
        return login;
    }

    public void setLogin(String login) {
        this.login = login;
    }

    public String getPasswd() {
        return passwd;
    }

    public void setPasswd(String passwd) {
        this.passwd = passwd;
    }

    public UsuariosDTO() {
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 37 * hash + (this.id != null ? this.id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final UsuariosDTO other = (UsuariosDTO) obj;
        if (this.id != other.id && (this.id == null || !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "UsuariosDTO{" + "id=" + id + ", login=" + login + ", passwd=" + passwd + '}';
    }

    public static String getSELECT_ALL() {
        return SELECT_ALL;
    }

    public static String getLOGIN() {
        return LOGIN;
    }
    
    
    
    
}
